import request from '@/utils/request';

export function listData(query) {
  return request({
    url: `/microblog/list${query}`,
    method: 'get',
  });
}


/*
* 动态管理 - 审核
* ids	string	记录ID 必传，多个用英文下逗号连接
* audit_res	string	审核结果，必传：1：审核通过；0：审核拒绝
* */
export function passData(ids, audit_res) {
  return request({
    url: `/microblog/audit`,
    method: 'post',
    data: {ids, audit_res}
  })
}

export function refuseData(form) {
  return request({
    url: `/microblog/refuse`,
    method: 'post',
    data: form
  });
}

export function deleteData(form) {
  return request({
    url: `/microblog/delete`,
    method: 'post',
    data: form
  });
}

